import API from '../index.js'
//标签接口


//添加标签
export function addTag(data) {
	return API({
		url: '/admin/tag',
		method: 'post',
		data: data
	})
}


//标签分页查找
export function pageTagList(data) {
	return API({
		url: '/admin/tag',
		method: 'get',
		params: data
	})
}

//标签分页查询
export function get(data){
	return API({
		url: 'admin/tag/page',
		method: 'get',
		params: data
	})
}

//标签列表查询
export function list(data) {
	return API({
		url: '/admin/tag',
		method: 'get',
		params: data
	})
}

//修改标签
export function update(data) {
	return API({
		url: '/admin/tag',
		method: 'put',
		data: data
	})
}

//删除标签
export function del(data) {
    return API({
		url: '/admin/tag',
		method: 'delete',
		data: data
	})
}
